package cn.sunshine.comprehensive.observer_mediator;

/**
 * @Description cn.sunshine.comprehensive.observer_mediator
 * @Author Mokairui
 * @Since 2021/12/30
 */
public abstract class AbstractUser implements Observer {
    protected Mediator mediator;
    protected String name;

    public AbstractUser(String name) {
        this.name = name;
    }

    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }

    public abstract void contact(String message);
}
